package com.df.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: codes
 * @description:
 * @author: df
 * @create: 2023-07-12 18:51:49
 **/
@RestController
@RefreshScope
public class DemoController {

    @Value("${user.name}")
    String name;

    @GetMapping("/demo")
    public String demo(){
        return "user.name: "+ name;
    }
}
